﻿<Page x:Name="This"
    x:Class="GetWeatherPrototype.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:GetWeatherPrototype"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <TextBlock x:Name="txtLocation" 
                   Height="30" Width="500" 
                   HorizontalAlignment="Left"
                   VerticalAlignment="Top"
                   TextAlignment="Left"
                   FontSize="15"
                   Text="{Binding ElementName=This, Path=MyLocation}"/>
        <Button x:Name="btnGetLocation"
                Height="50"
                Content="Get Location"
                HorizontalAlignment="Left"
                VerticalAlignment="Top"
                Margin="0, 30"
                Click="BtnGetLocation_OnClick"/>
        <ScrollViewer Height="600" 
                      VerticalAlignment="Top" 
                      HorizontalAlignment="Stretch" 
                      Margin="0, 80" 
                      VerticalScrollBarVisibility="Auto" 
                      HorizontalScrollBarVisibility="Auto">
            <TextBlock x:Name="txtResponse" FontSize="15"/>
        </ScrollViewer>
    </Grid>
</Page>